Expand description
§cookie_store
Provides an implementation for storing and retrieving Cookie
s per the path and domain matching
rules specified in RFC6265.
§Example
Please refer to the reqwest_cookie_store for an example of using this library along with reqwest.
§Feature flags
preserve_order
— usesindexmap::IndexMap
in lieu of HashMap internally, so cookies are maintained in insertion/creation orderpublic_suffix
(enabled by default) — Add support for public suffix lists, as provided by publicsuffix.wasm-bindgen
— Enables transitive featuretime/wasm-bindgen
; necessary inwasm
contexts.log_secure_cookie_values
— Enable logging the values of cookies marked ‘secure’, off by default as values may be sensitive
§Serialization
serde
— Supports generic (format-agnostic) de/serialization for aCookieStore
. Adds dependenciesserde
andserde_derive
.serde_json
(enabled by default) — Supports de/serialization for aCookieStore
via the JSON format. Enables featureserde
and adds depenencyserde_json
.serde_ron
— Supports de/serialization for aCookieStore
via the RON format. Enables featureserde
and adds depenencyron
.
Modules§
- De/serialization functionality Requires feature
serde
Structs§
- A cookie conforming more closely to IETF RFC6265
- The path of a
Cookie
- Representation of an HTTP cookie.
Enums§
- The domain of a
Cookie
- When a given
Cookie
expires - Enum corresponding to a parsing error.